﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;

namespace ProjScan.Config
{
	// Token: 0x02000336 RID: 822
	internal class ShaderAnalysisConfig : BaseConfig
	{
		// Token: 0x0600130B RID: 4875 RVA: 0x0005A9EC File Offset: 0x00058BEC
		public override void Init()
		{
			this.hasSeparateTargetDirSettings = true;
			this.hasWhiteList = true;
			this.hasfailedData = true;
			this.hasFixRule = false;
			bool flag = this.dicRuleConfig == null;
			if (flag)
			{
				this.dicRuleConfig = new Dictionary<string, RuleConfig>();
			}
			else
			{
				this.dicRuleConfig.Clear();
			}
		}

		// Token: 0x0600130C RID: 4876 RVA: 0x00008F2E File Offset: 0x0000712E
		public override void LoadConfig(JObject data)
		{
			this._rootConfig = (JObject)data["Shader_Analysis"];
			this.ResolveRule();
		}

		// Token: 0x0600130D RID: 4877 RVA: 0x00008F4E File Offset: 0x0000714E
		public override void SaveConfig(JObject data)
		{
			data.Add("Shader_Analysis", this.SaveJObjectRule());
		}
	}
}
